define([
  'views/Modal'
], function(Modal) {
  var ConfirmCancelModal = Modal.extend({
    events: {
      "click a[name=close]":    "close",
      "click a[name=confirm]":	"confirm",
      "click a[name=cancel]":	"cancel"
    },
    
    confirm: function() {
      this.model.trigger("confirm_remove");
      this.close();
    },
    
    cancel: function() {
      this.close();
    }
  });

  return ConfirmCancelModal;
});